<template>
    <div>
        <center>
            <h1>Provide 和 inject组件</h1>
            <p>孙级组件</p>
            <p>{{ content1 }} {{ content2.name }}</p>
            <button @click="updateContent1">updateContent1</button>
        </center>
    </div>
</template>

<script>
export default {
    inject: ['content1', 'content2', 'updateContent1'],
};
</script>

<style></style>
